GDK W32: Handle maximizing correctly for small primary monitors
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 11 Dec 2016 16:26:34 +0000 (16:26 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:17 +0000 (10:38 +0000)
commit285ebd58a87b3ef04623b199774fd5d42c5569be
tree86b3ec8d1f7862fae01f546330c601399ddb76f5
parentc7bdf643c5564e7b3cc21c2dfc86e4c889839cdf
GDK W32: Handle maximizing correctly for small primary monitors

When primary monitor is smaller than the actual monitor on which the
window is being maximized, the WM will do widnow size adjustments
that will completely screw the window size if we try to make it
smaller than 100% fullscreen (to account for taskbar size, for example).

Fix this by overriding maximized window size during WM_WINDOWPOSCHANGING.

https://bugzilla.gnome.org/show_bug.cgi?id=775808
gdk/win32/gdkevents-win32.c
gdk/win32/gdkwindow-win32.c
gdk/win32/gdkwindow-win32.h